package com.plian.system.entity.fr.indicators;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("fr_business_indicators_info")
@ApiModel("预算业务指标")
public class BusinessIndicatorsInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long baseId;

    @ApiModelProperty(value = "指标名称")
    private String businessIndicatorsName;

    @ApiModelProperty(value = "指标单位")
    private String indexUnit;

    @ApiModelProperty(value = "去年完成值")
    private BigDecimal lastCompleteValue;

    @ApiModelProperty(value = "当年预算数")
    private BigDecimal budgetValue;

    @ApiModelProperty(value = "变动趋势")
    private BigDecimal trendChange;

    @ApiModelProperty(value = "变动趋势 1正增长 2负增长")
    private Integer trendChangeFlag;

    @ApiModelProperty(value = "原因说明")
    private String changeReason;

    @ApiModelProperty(value = "企业id")
    private String orgId;

    @ApiModelProperty(value = "企业名称")
    private String orgName;
}
